package com.sc.domain.patrol;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/*
 * 巡检点
 * @author: Zuiliu
 * */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("zuiliu_patrol_points")
public class PatrolPoint {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("point_name")
    private String pointName;//巡检点名称
    @TableField("project_name")
    private String projectName;//项目名称
    @TableField("punch_mode")
    private String punchMode;//打卡方式
    @TableField("point_position")
    private String pointPosition;//巡检点位置
    @TableField("point_status")
    private String pointStatus;//状态
    @TableField("add_person")
    private String addPerson;//添加人员
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @TableField("add_time")
    private LocalDateTime addTime;//添加时间
}
